//
//  AISTabViewController.h
//  ParkingCloud
//
//  Created by Ares on 16/3/16.
//  Copyright © 2016年 NJSubier. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol AISTabViewControllerDelegate <NSObject>

@optional
- (void)tabViewDidSelectedAtIndex:(NSInteger)index;

@end


IB_DESIGNABLE

@interface AISTabViewController : UIViewController

@property (nonatomic, assign) id<AISTabViewControllerDelegate> delegate;

@property (nonatomic, assign) IBInspectable CGFloat tabHeight;
@property (nonatomic, strong) IBInspectable UIColor *tabTitleNormalColor;
@property (nonatomic, strong) IBInspectable UIColor *tabTitleSelectedColor;
@property (nonatomic, strong) IBInspectable UIColor *tabSeparatorColor;
@property (nonatomic, strong) IBInspectable UIColor *tabIndicatorColor;
@property (nonatomic, assign) IBInspectable CGFloat tabIndicatorHeight;
@property (nonatomic, strong) IBInspectable UIColor *tabBottomLineColor;
@property (nonatomic, assign) IBInspectable CGFloat tabBottomLineHeight;

/**
 Need set the viewControllers before viewDidLoad.
 */
@property (nonatomic, strong) NSArray<UIViewController *> *viewControllers;

- (void)selectTabAtIndex:(NSInteger)index;
- (NSInteger)selectedTab;

@end
